package com.xxx.yuedong.mall.model.dao;

import com.xxx.yuedong.mall.model.pojo.Order;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @author hc
 */
@Repository(value = "mall-order")
public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Order selectByOrderNo(String orderNo);

    List<Order> selectForCustomer(Integer userId);

    List<Order> selectAllForAdmin();

    HashMap searchReceiver(Long orderNo);

    int updateOrderStatus(HashMap param);
}